package redis.redisDemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import redis.redisJarDemo.EnableDefineService;
import redis.redisJarDemo.MyRedisConfigration;
import redis.redisJarDemo.MyRedisTemplate;

/**
 * @Description
 * @Author zhoucq
 * @Date 2025/9/23 10:18
 * @Version 1.0
 */
@SpringBootApplication
@EnableDefineService //自定义注解
public class RedisDemo01 {
    public static void main(String[] args) {
//        ApplicationContext applicationContext = new AnnotationConfigApplicationContext();
        ConfigurableApplicationContext context = SpringApplication.run(RedisDemo01.class, args);
        System.out.println("启动成功" + context.getBean(MyRedisTemplate.class));
    }
}
